package util

type LogLevel int8

const (
	DebugLog LogLevel = 0
	InfoLog  LogLevel = 1
	ErrorLog LogLevel = 2
	FatalLog LogLevel = 3
	SqlLog   LogLevel = 4
)

func (l LogLevel) String() string {
	switch l {
	case DebugLog:
		return "debug"
	case InfoLog:
		return "info"
	case ErrorLog:
		return "error"
	case FatalLog:
		return "fatal"
	case SqlLog:
		return "sql"
	default:
		return "info"
	}
}
